package com.kchouse.common;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;

import com.kchouse.view.ProgressDialog;

/**
 * 共公基类Fragment
 */
public class BaseFragment extends Fragment {

    private ProgressDialog progressdialog;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        progressdialog = new ProgressDialog(getActivity());
    }

    public void showdialog()
    {
        progressdialog.show();
    }

    public void dismissdialog()
    {
        progressdialog.dismiss();
    }
}
